#ifndef CONTATO_H
#define CONTATO_H
#include "ForcaInteracao.h"

class Contato : public ForcaInteracao
{
    private:
        inline double Abs( double x ) { return (x < 0.0)? -x : x; }
        inline double Min( double x, double y ) { return (x < y)? x : y; }
            ELEMENT_LIST<LINE>* Lines;

            const float kn;
            const float cn;
            const float gamma;
    public:
         void ForcaResSS (SPHERE* s, SPHERE* t);
         void ForcaResSL (SPHERE* s, LINE* l );
         Contato () : kn (0.5E-4), cn(1.5E4),gamma(1000.0){}
         Contato (float k, float c, float g) : kn (k), cn(c),gamma(g){}
};
#endif // CONTATO_H
